/**
 * 
 */
package com.socialvampic.mvc.controller;

import android.app.Activity;
import android.support.v4.app.Fragment;

import com.socialvampic.language.Language;
import com.socialvampic.language.OnChangedLanguageListener;

/**
 * @author trungduy
 * 
 */
public abstract class Controller extends Fragment implements
		OnChangedLanguageListener {
	protected Language mLanguage;

	public Controller() {
		// Empty
	}

	public Language getLanguage() {
		return mLanguage;
	}

	public void setLanguage(Language language) {
		mLanguage = language;
	}

	@Override
	public void onAttach(Activity activity) {
		// TODO Auto-generated method stub
		super.onAttach(activity);
		mLanguage = new Language(activity.getApplication());
	}
}
